import 'package:flutter/material.dart';
import 'package:niu_app/pages/model/homepage/api_account_model.dart';
import 'package:niu_app/views/homepage/api_account_widget.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class api_account_Page extends StatefulWidget {
  @override
  _api_account_PageState createState() => _api_account_PageState();
}

class _api_account_PageState extends State<api_account_Page> {
  @override

  List notice=[
    {
      "title":"牛了吧唧的牛人",
      "title1":"OKEX/永续合约金本位",
      "title4":"BTC/USDT牛人",
      "number1":"87",
      "number2":"98.76%",
      "number3":"146",
      "number4":"80.90%",
      "title2":"跟随",
      "title3":"盈利"
    }
  ];
  Widget build(BuildContext context) {
    return Container(
        height: 300.h,
        color: Color.fromRGBO(245, 245, 245, 1),
        child: APIaccountWidget(
          dataModel: ApiaccountModel.fromJson(notice[0]),
        ),
    );
  }
}
